<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import service from "./utils/request";

export default {
  components: {},
  mounted() {
    this.report();
    this.websiteConfig();
  },
  methods: {
    report() {
      service.post("/report").then((res) => {});
    },
    websiteConfig() {
      service.get("/users/website/config").then((res) => {
        this.$store.commit("updateWebsiteConfig", res.data);
      });
    },
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  height: 100%;
}

// 自定义进度条颜色
#nprogress .bar {
  background: #f811b2 !important; //自定义颜色
}
</style>
